package com.kgc.store.remote;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.store.pojo.OutStore;
import com.kgc.store.pojo.Quality;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

public interface QualityRemote {

    @RequestMapping("getQualityList")
    @ResponseBody
    ResponseMsg getQualityList(@RequestBody Map<String, Object> map);

    @RequestMapping("delQuality")
    @ResponseBody
    ResponseMsg delQuality(@RequestParam("code") String code);

    @RequestMapping("addQuality")
    @ResponseBody
    ResponseMsg addQuality(@RequestBody Quality quality);

    @RequestMapping("selectQualityType")
    @ResponseBody
    ResponseMsg selectQualityType();

    @RequestMapping("selectQualityDetailByCGDD")
    @ResponseBody
    ResponseMsg selectQualityDetailByCGDD(@RequestParam("cgddCode") String cgddCode);

}
